package org.sbbs.demo.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;
import org.sbbs.base.jpa.entity.BaseEntity;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

/**
 *
 * @author jenkins
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "demo_entity")
@Comment("样例表")
//@EntityListeners({AuditingEntityListener.class, AuditEntityAuditingListener.class})
public class DemoBean extends BaseEntity {

    /**
     * 名称
     */
    @Column(name = "name", length = 50)
    @Comment("名称")
    private String name;

}
